import * as Urls from "./url";
import { request } from "./ajax";
import {CaptchaCreate, PageFacility} from "./url";

// 这里写请求
// 例子：
export const userLogin = (param) => request(Urls.Login, param, 'post');
export const siteInfo = (param) => request(Urls.SiteInfo, param, 'get');
export const facilityList = (param) => request(Urls.FacilityList, param, 'get');
// 新闻
export const getNewsList = (param) => request(Urls.NewsList, param, 'get');
export const landList = (param) => request(Urls.LandList, param, 'get');
export const townList = (param) => request(Urls.TownList, param, 'get');
export const selectList = (param) => request(Urls.SelectList, param, 'get');
export const getWeatherFirst = (param) => request(Urls.WeatherFirst, param, 'get');
export const getLandChart = (param) => request(Urls.LandChart, param, 'get');
export const getDemonstrationList = (param) => request(Urls.DemonstrationList, param, 'get');
export const getCompanyAdoptList = (param) => request(Urls.CompanyAdoptList, param, 'get');
export const getNotificationInfo = (param) => request(Urls.NotificationInfo, param, 'get');
export const getPartnerList = (param) => request(Urls.PartnerList, param, 'get');
export const getRiskList = (param) => request(Urls.RiskList, param, 'get');
export const getCameraDetail = (param) => request(Urls.CameraDetail, param, 'get');
export const doCamera = (param) => request(Urls.DoCamera, param, 'post');
export const getFacilityPage = (param) => request(Urls.PageFacility, param, 'get');
export const getListGroup = (param) => request(Urls.ListGroup, param, 'get');
export const getCameraDateList = (param) => request(Urls.CameraDateList, param, 'get');
export const getCameraTimeList = (param) => request(Urls.CameraTimeList, param, 'get');
export const getCameraRecordBackUrl = (param) => request(Urls.CameraRecordBackUrl, param, 'get');
export const getCaptcha = (param) => request(Urls.CaptchaCreate, param, 'get');

